package org.hxyjs.entity;

import java.util.ArrayList;
import java.util.List;

public class RegionExample {
    protected String orderByClause;

    protected boolean distinct;

    protected List<Criteria> oredCriteria;

    private Integer limit;

    private Integer offset;

    public RegionExample() {
        oredCriteria = new ArrayList<Criteria>();
    }

    public void setOrderByClause(String orderByClause) {
        this.orderByClause = orderByClause;
    }

    public String getOrderByClause() {
        return orderByClause;
    }

    public void setDistinct(boolean distinct) {
        this.distinct = distinct;
    }

    public boolean isDistinct() {
        return distinct;
    }

    public List<Criteria> getOredCriteria() {
        return oredCriteria;
    }

    public void or(Criteria criteria) {
        oredCriteria.add(criteria);
    }

    public Criteria or() {
        Criteria criteria = createCriteriaInternal();
        oredCriteria.add(criteria);
        return criteria;
    }

    public Criteria createCriteria() {
        Criteria criteria = createCriteriaInternal();
        if (oredCriteria.size() == 0) {
            oredCriteria.add(criteria);
        }
        return criteria;
    }

    protected Criteria createCriteriaInternal() {
        Criteria criteria = new Criteria();
        return criteria;
    }

    public void clear() {
        oredCriteria.clear();
        orderByClause = null;
        distinct = false;
    }

    public void setLimit(Integer limit) {
        this.limit = limit;
    }

    public Integer getLimit() {
        return limit;
    }

    public void setOffset(Integer offset) {
        this.offset = offset;
    }

    public Integer getOffset() {
        return offset;
    }

    protected abstract static class GeneratedCriteria {
        protected List<Criterion> criteria;

        protected GeneratedCriteria() {
            super();
            criteria = new ArrayList<Criterion>();
        }

        public boolean isValid() {
            return criteria.size() > 0;
        }

        public List<Criterion> getAllCriteria() {
            return criteria;
        }

        public List<Criterion> getCriteria() {
            return criteria;
        }

        protected void addCriterion(String condition) {
            if (condition == null) {
                throw new RuntimeException("Value for condition cannot be null");
            }
            criteria.add(new Criterion(condition));
        }

        protected void addCriterion(String condition, Object value, String property) {
            if (value == null) {
                throw new RuntimeException("Value for " + property + " cannot be null");
            }
            criteria.add(new Criterion(condition, value));
        }

        protected void addCriterion(String condition, Object value1, Object value2, String property) {
            if (value1 == null || value2 == null) {
                throw new RuntimeException("Between values for " + property + " cannot be null");
            }
            criteria.add(new Criterion(condition, value1, value2));
        }

        public Criteria andRnoIsNull() {
            addCriterion("rno is null");
            return (Criteria) this;
        }

        public Criteria andRnoIsNotNull() {
            addCriterion("rno is not null");
            return (Criteria) this;
        }

        public Criteria andRnoEqualTo(String value) {
            addCriterion("rno =", value, "rno");
            return (Criteria) this;
        }

        public Criteria andRnoNotEqualTo(String value) {
            addCriterion("rno <>", value, "rno");
            return (Criteria) this;
        }

        public Criteria andRnoGreaterThan(String value) {
            addCriterion("rno >", value, "rno");
            return (Criteria) this;
        }

        public Criteria andRnoGreaterThanOrEqualTo(String value) {
            addCriterion("rno >=", value, "rno");
            return (Criteria) this;
        }

        public Criteria andRnoLessThan(String value) {
            addCriterion("rno <", value, "rno");
            return (Criteria) this;
        }

        public Criteria andRnoLessThanOrEqualTo(String value) {
            addCriterion("rno <=", value, "rno");
            return (Criteria) this;
        }

        public Criteria andRnoLike(String value) {
            addCriterion("rno like", value, "rno");
            return (Criteria) this;
        }

        public Criteria andRnoNotLike(String value) {
            addCriterion("rno not like", value, "rno");
            return (Criteria) this;
        }

        public Criteria andRnoIn(List<String> values) {
            addCriterion("rno in", values, "rno");
            return (Criteria) this;
        }

        public Criteria andRnoNotIn(List<String> values) {
            addCriterion("rno not in", values, "rno");
            return (Criteria) this;
        }

        public Criteria andRnoBetween(String value1, String value2) {
            addCriterion("rno between", value1, value2, "rno");
            return (Criteria) this;
        }

        public Criteria andRnoNotBetween(String value1, String value2) {
            addCriterion("rno not between", value1, value2, "rno");
            return (Criteria) this;
        }

        public Criteria andRnameIsNull() {
            addCriterion("rName is null");
            return (Criteria) this;
        }

        public Criteria andRnameIsNotNull() {
            addCriterion("rName is not null");
            return (Criteria) this;
        }

        public Criteria andRnameEqualTo(String value) {
            addCriterion("rName =", value, "rname");
            return (Criteria) this;
        }

        public Criteria andRnameNotEqualTo(String value) {
            addCriterion("rName <>", value, "rname");
            return (Criteria) this;
        }

        public Criteria andRnameGreaterThan(String value) {
            addCriterion("rName >", value, "rname");
            return (Criteria) this;
        }

        public Criteria andRnameGreaterThanOrEqualTo(String value) {
            addCriterion("rName >=", value, "rname");
            return (Criteria) this;
        }

        public Criteria andRnameLessThan(String value) {
            addCriterion("rName <", value, "rname");
            return (Criteria) this;
        }

        public Criteria andRnameLessThanOrEqualTo(String value) {
            addCriterion("rName <=", value, "rname");
            return (Criteria) this;
        }

        public Criteria andRnameLike(String value) {
            addCriterion("rName like", value, "rname");
            return (Criteria) this;
        }

        public Criteria andRnameNotLike(String value) {
            addCriterion("rName not like", value, "rname");
            return (Criteria) this;
        }

        public Criteria andRnameIn(List<String> values) {
            addCriterion("rName in", values, "rname");
            return (Criteria) this;
        }

        public Criteria andRnameNotIn(List<String> values) {
            addCriterion("rName not in", values, "rname");
            return (Criteria) this;
        }

        public Criteria andRnameBetween(String value1, String value2) {
            addCriterion("rName between", value1, value2, "rname");
            return (Criteria) this;
        }

        public Criteria andRnameNotBetween(String value1, String value2) {
            addCriterion("rName not between", value1, value2, "rname");
            return (Criteria) this;
        }

        public Criteria andRnoimgIsNull() {
            addCriterion("rnoImg is null");
            return (Criteria) this;
        }

        public Criteria andRnoimgIsNotNull() {
            addCriterion("rnoImg is not null");
            return (Criteria) this;
        }

        public Criteria andRnoimgEqualTo(String value) {
            addCriterion("rnoImg =", value, "rnoimg");
            return (Criteria) this;
        }

        public Criteria andRnoimgNotEqualTo(String value) {
            addCriterion("rnoImg <>", value, "rnoimg");
            return (Criteria) this;
        }

        public Criteria andRnoimgGreaterThan(String value) {
            addCriterion("rnoImg >", value, "rnoimg");
            return (Criteria) this;
        }

        public Criteria andRnoimgGreaterThanOrEqualTo(String value) {
            addCriterion("rnoImg >=", value, "rnoimg");
            return (Criteria) this;
        }

        public Criteria andRnoimgLessThan(String value) {
            addCriterion("rnoImg <", value, "rnoimg");
            return (Criteria) this;
        }

        public Criteria andRnoimgLessThanOrEqualTo(String value) {
            addCriterion("rnoImg <=", value, "rnoimg");
            return (Criteria) this;
        }

        public Criteria andRnoimgLike(String value) {
            addCriterion("rnoImg like", value, "rnoimg");
            return (Criteria) this;
        }

        public Criteria andRnoimgNotLike(String value) {
            addCriterion("rnoImg not like", value, "rnoimg");
            return (Criteria) this;
        }

        public Criteria andRnoimgIn(List<String> values) {
            addCriterion("rnoImg in", values, "rnoimg");
            return (Criteria) this;
        }

        public Criteria andRnoimgNotIn(List<String> values) {
            addCriterion("rnoImg not in", values, "rnoimg");
            return (Criteria) this;
        }

        public Criteria andRnoimgBetween(String value1, String value2) {
            addCriterion("rnoImg between", value1, value2, "rnoimg");
            return (Criteria) this;
        }

        public Criteria andRnoimgNotBetween(String value1, String value2) {
            addCriterion("rnoImg not between", value1, value2, "rnoimg");
            return (Criteria) this;
        }

        public Criteria andRaddressIsNull() {
            addCriterion("rAddress is null");
            return (Criteria) this;
        }

        public Criteria andRaddressIsNotNull() {
            addCriterion("rAddress is not null");
            return (Criteria) this;
        }

        public Criteria andRaddressEqualTo(String value) {
            addCriterion("rAddress =", value, "raddress");
            return (Criteria) this;
        }

        public Criteria andRaddressNotEqualTo(String value) {
            addCriterion("rAddress <>", value, "raddress");
            return (Criteria) this;
        }

        public Criteria andRaddressGreaterThan(String value) {
            addCriterion("rAddress >", value, "raddress");
            return (Criteria) this;
        }

        public Criteria andRaddressGreaterThanOrEqualTo(String value) {
            addCriterion("rAddress >=", value, "raddress");
            return (Criteria) this;
        }

        public Criteria andRaddressLessThan(String value) {
            addCriterion("rAddress <", value, "raddress");
            return (Criteria) this;
        }

        public Criteria andRaddressLessThanOrEqualTo(String value) {
            addCriterion("rAddress <=", value, "raddress");
            return (Criteria) this;
        }

        public Criteria andRaddressLike(String value) {
            addCriterion("rAddress like", value, "raddress");
            return (Criteria) this;
        }

        public Criteria andRaddressNotLike(String value) {
            addCriterion("rAddress not like", value, "raddress");
            return (Criteria) this;
        }

        public Criteria andRaddressIn(List<String> values) {
            addCriterion("rAddress in", values, "raddress");
            return (Criteria) this;
        }

        public Criteria andRaddressNotIn(List<String> values) {
            addCriterion("rAddress not in", values, "raddress");
            return (Criteria) this;
        }

        public Criteria andRaddressBetween(String value1, String value2) {
            addCriterion("rAddress between", value1, value2, "raddress");
            return (Criteria) this;
        }

        public Criteria andRaddressNotBetween(String value1, String value2) {
            addCriterion("rAddress not between", value1, value2, "raddress");
            return (Criteria) this;
        }

        public Criteria andRdescribeIsNull() {
            addCriterion("rDescribe is null");
            return (Criteria) this;
        }

        public Criteria andRdescribeIsNotNull() {
            addCriterion("rDescribe is not null");
            return (Criteria) this;
        }

        public Criteria andRdescribeEqualTo(String value) {
            addCriterion("rDescribe =", value, "rdescribe");
            return (Criteria) this;
        }

        public Criteria andRdescribeNotEqualTo(String value) {
            addCriterion("rDescribe <>", value, "rdescribe");
            return (Criteria) this;
        }

        public Criteria andRdescribeGreaterThan(String value) {
            addCriterion("rDescribe >", value, "rdescribe");
            return (Criteria) this;
        }

        public Criteria andRdescribeGreaterThanOrEqualTo(String value) {
            addCriterion("rDescribe >=", value, "rdescribe");
            return (Criteria) this;
        }

        public Criteria andRdescribeLessThan(String value) {
            addCriterion("rDescribe <", value, "rdescribe");
            return (Criteria) this;
        }

        public Criteria andRdescribeLessThanOrEqualTo(String value) {
            addCriterion("rDescribe <=", value, "rdescribe");
            return (Criteria) this;
        }

        public Criteria andRdescribeLike(String value) {
            addCriterion("rDescribe like", value, "rdescribe");
            return (Criteria) this;
        }

        public Criteria andRdescribeNotLike(String value) {
            addCriterion("rDescribe not like", value, "rdescribe");
            return (Criteria) this;
        }

        public Criteria andRdescribeIn(List<String> values) {
            addCriterion("rDescribe in", values, "rdescribe");
            return (Criteria) this;
        }

        public Criteria andRdescribeNotIn(List<String> values) {
            addCriterion("rDescribe not in", values, "rdescribe");
            return (Criteria) this;
        }

        public Criteria andRdescribeBetween(String value1, String value2) {
            addCriterion("rDescribe between", value1, value2, "rdescribe");
            return (Criteria) this;
        }

        public Criteria andRdescribeNotBetween(String value1, String value2) {
            addCriterion("rDescribe not between", value1, value2, "rdescribe");
            return (Criteria) this;
        }

        public Criteria andRstateIsNull() {
            addCriterion("rState is null");
            return (Criteria) this;
        }

        public Criteria andRstateIsNotNull() {
            addCriterion("rState is not null");
            return (Criteria) this;
        }

        public Criteria andRstateEqualTo(Integer value) {
            addCriterion("rState =", value, "rstate");
            return (Criteria) this;
        }

        public Criteria andRstateNotEqualTo(Integer value) {
            addCriterion("rState <>", value, "rstate");
            return (Criteria) this;
        }

        public Criteria andRstateGreaterThan(Integer value) {
            addCriterion("rState >", value, "rstate");
            return (Criteria) this;
        }

        public Criteria andRstateGreaterThanOrEqualTo(Integer value) {
            addCriterion("rState >=", value, "rstate");
            return (Criteria) this;
        }

        public Criteria andRstateLessThan(Integer value) {
            addCriterion("rState <", value, "rstate");
            return (Criteria) this;
        }

        public Criteria andRstateLessThanOrEqualTo(Integer value) {
            addCriterion("rState <=", value, "rstate");
            return (Criteria) this;
        }

        public Criteria andRstateIn(List<Integer> values) {
            addCriterion("rState in", values, "rstate");
            return (Criteria) this;
        }

        public Criteria andRstateNotIn(List<Integer> values) {
            addCriterion("rState not in", values, "rstate");
            return (Criteria) this;
        }

        public Criteria andRstateBetween(Integer value1, Integer value2) {
            addCriterion("rState between", value1, value2, "rstate");
            return (Criteria) this;
        }

        public Criteria andRstateNotBetween(Integer value1, Integer value2) {
            addCriterion("rState not between", value1, value2, "rstate");
            return (Criteria) this;
        }

        public Criteria andRnaddressIsNull() {
            addCriterion("rnAddress is null");
            return (Criteria) this;
        }

        public Criteria andRnaddressIsNotNull() {
            addCriterion("rnAddress is not null");
            return (Criteria) this;
        }

        public Criteria andRnaddressEqualTo(String value) {
            addCriterion("rnAddress =", value, "rnaddress");
            return (Criteria) this;
        }

        public Criteria andRnaddressNotEqualTo(String value) {
            addCriterion("rnAddress <>", value, "rnaddress");
            return (Criteria) this;
        }

        public Criteria andRnaddressGreaterThan(String value) {
            addCriterion("rnAddress >", value, "rnaddress");
            return (Criteria) this;
        }

        public Criteria andRnaddressGreaterThanOrEqualTo(String value) {
            addCriterion("rnAddress >=", value, "rnaddress");
            return (Criteria) this;
        }

        public Criteria andRnaddressLessThan(String value) {
            addCriterion("rnAddress <", value, "rnaddress");
            return (Criteria) this;
        }

        public Criteria andRnaddressLessThanOrEqualTo(String value) {
            addCriterion("rnAddress <=", value, "rnaddress");
            return (Criteria) this;
        }

        public Criteria andRnaddressLike(String value) {
            addCriterion("rnAddress like", value, "rnaddress");
            return (Criteria) this;
        }

        public Criteria andRnaddressNotLike(String value) {
            addCriterion("rnAddress not like", value, "rnaddress");
            return (Criteria) this;
        }

        public Criteria andRnaddressIn(List<String> values) {
            addCriterion("rnAddress in", values, "rnaddress");
            return (Criteria) this;
        }

        public Criteria andRnaddressNotIn(List<String> values) {
            addCriterion("rnAddress not in", values, "rnaddress");
            return (Criteria) this;
        }

        public Criteria andRnaddressBetween(String value1, String value2) {
            addCriterion("rnAddress between", value1, value2, "rnaddress");
            return (Criteria) this;
        }

        public Criteria andRnaddressNotBetween(String value1, String value2) {
            addCriterion("rnAddress not between", value1, value2, "rnaddress");
            return (Criteria) this;
        }
    }

    /**
     */
    public static class Criteria extends GeneratedCriteria {

        protected Criteria() {
            super();
        }
    }

    public static class Criterion {
        private String condition;

        private Object value;

        private Object secondValue;

        private boolean noValue;

        private boolean singleValue;

        private boolean betweenValue;

        private boolean listValue;

        private String typeHandler;

        public String getCondition() {
            return condition;
        }

        public Object getValue() {
            return value;
        }

        public Object getSecondValue() {
            return secondValue;
        }

        public boolean isNoValue() {
            return noValue;
        }

        public boolean isSingleValue() {
            return singleValue;
        }

        public boolean isBetweenValue() {
            return betweenValue;
        }

        public boolean isListValue() {
            return listValue;
        }

        public String getTypeHandler() {
            return typeHandler;
        }

        protected Criterion(String condition) {
            super();
            this.condition = condition;
            this.typeHandler = null;
            this.noValue = true;
        }

        protected Criterion(String condition, Object value, String typeHandler) {
            super();
            this.condition = condition;
            this.value = value;
            this.typeHandler = typeHandler;
            if (value instanceof List<?>) {
                this.listValue = true;
            } else {
                this.singleValue = true;
            }
        }

        protected Criterion(String condition, Object value) {
            this(condition, value, null);
        }

        protected Criterion(String condition, Object value, Object secondValue, String typeHandler) {
            super();
            this.condition = condition;
            this.value = value;
            this.secondValue = secondValue;
            this.typeHandler = typeHandler;
            this.betweenValue = true;
        }

        protected Criterion(String condition, Object value, Object secondValue) {
            this(condition, value, secondValue, null);
        }
    }
}